home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / oleo-1_4.lha / oleo-1.4 / line.h < prev    next >
C/C++ Source or Header  |  1993-03-25  |  2KB  |  54 lines

  1. #ifndef LINEH
  2. #define LINEH
  3. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with Oleo; see the file COPYING.  If not, write to
  17. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18. /*  t. lord    Fri Aug  7 22:23:59 1992    */
  19.  
  20. #define LINE_MIN 28
  21.  
  22. struct line
  23. {
  24.   int alloc;
  25.   char *buf;
  26. };
  27.  
  28. #define init_line(L)  bzero((L), sizeof (struct line))
  29.  
  30.  
  31. #ifdef __STDC__
  32. extern void set_line (struct line *line, char *string);
  33. extern void setn_line (struct line *line, char *string, int n);
  34. extern void catn_line (struct line *line, char *string, int n);
  35. extern void sprint_line (struct line *line, char * fmt, ...);
  36. extern void splicen_line (struct line * line, char * str, int n, int pos);
  37. extern void edit_line (struct line * line, int begin, int len);
  38. extern void free_line (struct line * line);
  39. extern int read_line (struct line * line, FILE * fp, int * linec);
  40.  
  41. #else
  42. extern void set_line ();
  43. extern void setn_line ();
  44. extern void catn_line ();
  45. extern void sprint_line ();
  46. extern void splicen_line ();
  47. extern void edit_line ();
  48. extern void free_line ();
  49. extern int read_line ();
  50.  
  51. #endif
  52.  
  53. #endif
  54.